﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<script runat="server">
    protected void Button1_Click(object sender, EventArgs e)
    {

    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        if (CheckBox1.Checked == false)
            lblError.Text = "Debe seleccionar un registro.";
        else
            lblError.Text = "";
    }

    protected void Button3_Click(object sender, EventArgs e)
    {
        if (CheckBox1.Checked == false)
            lblError.Text = "Debe seleccionar un registro.";
        else
        {
            DateTime objDateTime = DateTime.Parse("17/09/2012");
            if (objDateTime < DateTime.Now)
                lblError.Text = "No puede anular un registro cuya fecha es menor a la actual.";
            else
                lblError.Text = "";
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button4_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/ItinerarioViajes.aspx");
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
<div></div>
<div style="color: #FFFFFF; font-size: medium">
    <i><b>REPORTE DE RESERVAS POR DESTINO</b></i></div>
<div></div>
<div>
    <table>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Origen" style="color: #FFFFFF"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label5" runat="server" Text=":" style="color: #FFFFFF"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="107px" style="color: #FFFFFF">Lima</asp:TextBox>
            </td>
            <td>
            </td>
            <td>
                <span style="color: #FFFFFF">
                <asp:Label ID="Label6" runat="server" Text="Destino"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label7" runat="server" Text=":"></asp:Label>
                </span>
            </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" Width="108px" style="color: #FFFFFF"></asp:TextBox>
            </td>
            <td></td>
            <td><asp:Button ID="Button4" runat="server" Text="Buscar" onclick="Button4_Click" /></td>
        </tr>
    </table>
</div>
<div></div>
<div>
            <table>
                <tr>
                    <td bgcolor="#CCCCFF" style="font-weight: bold"></td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Fecha</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Cliente</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">NroReserva</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Hora</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold; width: 73px;">Origen</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold; width: 82px;">Destino</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold; width: 62px;">Bus</td>
                </tr>
                <tr style="color: #FFFFFF">
                    <td>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </td>
                    <td>17/09/2012</td>
                    <td>Pedro Florez Martínez</td>
                    <td>458169784</td>
                    <td>15:30</td>
                    <td style="width: 73px">Lima</td>
                    <td style="width: 82px">Cuzco</td>
                    <td style="width: 62px">T3E-969</td>
                </tr>
                <tr style="color: #FFFFFF">
                    <td>
                        <asp:CheckBox ID="CheckBox2" runat="server" />
                    </td>
                    <td>27/09/2012</td>
                    <td>Martín Santos Lorenzo</td>
                    <td>469632569</td>
                    <td>10:20</td>
                    <td style="width: 73px">Lima</td>
                    <td style="width: 82px">Cuzco</td>
                    <td style="width: 62px">T3E-357</td>
                </tr>
            </table>
</div>
<div></div>
<div>
            <br />
            <asp:Button ID="Button1" runat="server" Text="Regresar" 
                onclick="Button1_Click" />
            <asp:Button ID="Button3" runat="server" Text="Anular" onclick="Button3_Click" />
</div>
    
<div></div>
<div><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></div>
<div></div>
    </form>
</asp:Content>
